package com.dragon.logical.service.customer;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.AddPageData;
import com.dragon.repository.entity.Quotes;

import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 报价表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-06-20
 */
public interface QuotesService extends IService<Quotes> {

    Page<Quotes> quotesList(Integer page, Integer limit, String search,Integer status, Integer recodeId,Integer isContract);

    Page<Quotes> quotesListByContractId(Integer page, Integer limit, String search, Integer status, Integer recodeId, Integer isContract);

    AddPageData addQuotes(Quotes quotes) throws ParseException;

    void updateQuotes(Quotes quotes);

    void deleteQuotes(Integer id);

    Quotes selectDetailById(Integer id);

    /**
     * 根据客户id查看报价
     * @param id
     * @return
     */
    List<Quotes> selectByCustomerId(Integer id);


    void exportExcel(HttpServletResponse response);

    /**
     * 报价反审核
     * @param correlationId
     */
    void antiAudit(Integer correlationId);
}
